package com.heartrate.local.table;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 心率实体类
 */
@Entity
public class HeartRates {
    @Id(autoincrement = true)
    private Long id;

    @Property(nameInDb = "HEART_TIME")
    private int time;

    @NotNull
    @Property(nameInDb = "HEART_RATE")
    private int rate;

    @Generated(hash = 404444680)
    public HeartRates(Long id, int time, int rate) {
        this.id = id;
        this.time = time;
        this.rate = rate;
    }

    @Generated(hash = 1457763578)
    public HeartRates() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getTime() {
        return this.time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getRate() {
        return this.rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }
    
}